from django.test import TestCase
from common.data_process import DataProcess
from common import replaces, requests, thresholds
from common.integrates import SignRequest


class DataProcessTestCase(TestCase):
    sign_request = SignRequest()
    query_buffer = {}
    data_process = DataProcess("CC4")

    def process_test(self):
        query_data = self.data_process.query(self.data_process.request_body)
        replace_data = self.data_process.replace(query_data)
        compare_data = self.data_process.compare(replace_data)
        binary_data = self.data_process.binary(compare_data)

        print("test result is %s" % binary_data)
